﻿%
% Danh sách nguyên liệu
%

% ingredient(gao_te).
% ingredient(gao_nep).
% ingredient(khoai_tay).

ingredient(thit_bo).
ingredient(thit_heo).
ingredient(thit_ga).

% ingredient(rau_cai).
% ingredient(hoa_lo).
% ingredient(dau_ha_lan).
% ingredient(dua).

% ingredient(ca_chua).

% ingredient(cui_dua_non).
% ingredient(cui_dua_gia).
% ingredient(nam_huong).

% ingredient(duong_cat).
% ingredient(bot_ca_ri).

% ingredient(ruou_vang).

%
% Món ăn
%

% 1. Món tinh bột
recipe(com_te).
recipe(com_nep).

% 2. Món thịt bò
recipe(thit_bo_sot_vang).
recipe(thit_bo_xao_dua).
recipe(thit_bo_xien_nuong).
recipe(thit_bo_bit_tet).

% 3. Món thịt heo
recipe(thit_lon_luoc).
recipe(thit_lon_kho_nuoc_dua).

recipe(thit_lon_kho_tau).
recipe(thit_lon_xao_rau_cai).
recipe(thit_lon_rang).

% 4. Món thịt gà
recipe(ga_luoc).
recipe(ga_ran).
recipe(ga_nau_khoai_tay).
recipe(ga_nau_ca_ri).
recipe(ga_xao_nam_huong).

% 5. Món canh

% 6. Món khác
recipe(xoi_ruoc).
recipe(xoi_gio_cha).
recipe(xoi_thit).
recipe(xoi_lac).
recipe(xoi_dau_xanh).
recipe(xoi_dau_den).
recipe(xoi_vo).
recipe(xoi_xeo).
recipe(xoi_lua).

recipe(bun_rieu).
recipe(bun_oc).
recipe(bun_ngan).
recipe(bun_cha).
recipe(bun_thang).
recipe(bun_bo_hue).
recipe(bun_bung).
recipe(bun_ca).

recipe(pho_bo).
recipe(pho_ga).

recipe(chao_suon).
recipe(chao_trai).
recipe(chao_ga).
recipe(chao_ca).
recipe(chao_luon).

% 7. Các món nước ngoài



%
% Thành phần nguyên liệu
%


% 1. Món tinh bột
fact(av(ingredients(com_te), [gao_te]), 1).
fact(av(ingredients(com_nep), [gao_nep]), 1).

% 2. Món thịt bò
fact(av(ingredients(thit_bo_sot_vang), [thit_bo, ca_chua, ruou_vang]), 1).
fact(av(ingredients(thit_bo_xao_dua), [thit_bo, dua]), 1).
fact(av(ingredients(thit_bo_xien_nuong), [thit_bo]), 1).
fact(av(ingredients(thit_bo_bit_tet), [thit_bo, khoai_tay]), 1).

% 3. Món thịt heo
fact(av(ingredients(thit_lon_luoc), [thit_heo]), 1).
fact(av(ingredients(thit_lon_kho_nuoc_dua), [thit_heo, cui_dua_non]), 1).
fact(av(ingredients(thit_lon_kho_tau), [thit_heo, duong_cat]), 1).
fact(av(ingredients(thit_lon_xao_rau_cai), [thit_heo, rau_cai]), 1).
fact(av(ingredients(thit_lon_rang), [thit_heo, duong_cat]), 1).

% 4. Món thịt gà
fact(av(ingredients(ga_luoc), [thit_ga]), 1).
fact(av(ingredients(ga_ran), [thit_ga]), 1).
fact(av(ingredients(ga_nau_khoai_tay), [thit_ga, khoai_tay, ca_chua]), 1).
fact(av(ingredients(ga_nau_ca_ri), [thit_ga, cui_dua_gia, bot_ca_ri]), 1).
fact(av(ingredients(ga_xao_nam_huong), [thit_ga,nam_huong,hoa_lo,dau_ha_lan]), 1).

%
% Năng lượng
%

% 1. Món tinh bột
fact(av(calorie(com_te), low), 1).
fact(av(calorie(com_nep), low), 1).

% 2. Món thịt bò
fact(av(calorie(thit_bo_sot_vang), high), 1).
fact(av(calorie(thit_bo_xao_dua), high), 1).
fact(av(calorie(thit_bo_xien_nuong), high), 1).
fact(av(calorie(thit_bo_bit_tet), high), 1).

% 3. Món thịt heo
fact(av(calorie(thit_lon_luoc), normal), 1).
fact(av(calorie(thit_lon_kho_nuoc_dua), high), 1).
fact(av(calorie(thit_lon_kho_tau), high), 1).
fact(av(calorie(thit_lon_xao_rau_cai), normal), 1).
fact(av(calorie(thit_lon_rang), normal), 1).

% 4. Món thịt gà
fact(av(calorie(ga_luoc), normal), 1).
fact(av(calorie(ga_ran), high), 1).
fact(av(calorie(ga_nau_khoai_tay), high), 1).
fact(av(calorie(ga_nau_ca_ri), high), 1).
fact(av(calorie(ga_xao_nam_huong), high), 1).


%
% Mùi
%

fact(av(odour(com_te), no), 1).
fact(av(odour(com_nep), fragrant), 1).

fact(av(odour(thit_bo_sot_vang), no), 1).
fact(av(odour(thit_bo_xao_dua), no), 1).
fact(av(odour(thit_bo_xien_nuong), fragrant), 1).
fact(av(odour(thit_bo_bit_tet), no), 1).

fact(av(odour(thit_lon_luoc), no), 1).
fact(av(odour(thit_lon_kho_nuoc_dua), no), 1).

fact(av(odour(ga_xao_nam_huong), fragrant), 1).


%
% Vị
%

fact(av(taste(com_te), no), 1).
fact(av(taste(com_nep), no), 1).

fact(av(taste(thit_bo_sot_vang), no), 1).
fact(av(taste(thit_bo_xao_dua), no), 1).
fact(av(taste(thit_bo_xien_nuong), no), 1).
fact(av(taste(thit_bo_bit_tet), no), 1).

fact(av(taste(thit_lon_luoc), no), 1).
fact(av(taste(thit_lon_kho_nuoc_dua), no), 1).

fact(av(taste(thit_lon_kho_tau),sweet), 1).
fact(av(taste(ga_nau_ca_ri),spicy), 1).

%
% Bữa ăn
%

fact(av(mealTime(com_te), [lunch, dinner]), 1).
fact(av(mealTime(com_nep), [lunch, dinner]), 1).
fact(av(mealTime(thit_bo_sot_vang), [lunch, dinner]), 1).
fact(av(mealTime(thit_bo_xao_dua), [lunch, dinner]), 1).
fact(av(mealTime(thit_bo_xien_nuong), [lunch, dinner]), 1).
fact(av(mealTime(thit_bo_bit_tet), [lunch, dinner]), 1).
fact(av(mealTime(thit_lon_luoc), [lunch, dinner]), 1).
fact(av(mealTime(thit_lon_kho_nuoc_dua), [lunch, dinner]), 1).
fact(av(mealTime(thit_lon_kho_tau), [lunch, dinner]), 1).
fact(av(mealTime(thit_lon_xao_rau_cai), [lunch, dinner]), 1).
fact(av(mealTime(thit_lon_rang), [lunch, dinner]), 1).
fact(av(mealTime(ga_luoc), [lunch, dinner]), 1).
fact(av(mealTime(ga_ran), [lunch, dinner]), 1).
fact(av(mealTime(ga_nau_khoai_tay), [lunch, dinner]), 1).
fact(av(mealTime(ga_nau_ca_ri), [lunch, dinner]), 1).
fact(av(mealTime(ga_xao_nam_huong), [lunch, dinner]), 1).

fact(av(mealTime(xoi_ruoc), [breakfast]), 1).
fact(av(mealTime(xoi_gio_cha), [breakfast]), 1).
fact(av(mealTime(xoi_thit), [breakfast]), 1).
fact(av(mealTime(xoi_lac), [breakfast]), 1).
fact(av(mealTime(xoi_dau_xanh), [breakfast]), 1).
fact(av(mealTime(xoi_dau_den), [breakfast]), 1).
fact(av(mealTime(xoi_vo), [breakfast]), 1).
fact(av(mealTime(xoi_xeo), [breakfast]), 1).
fact(av(mealTime(xoi_lua), [breakfast]), 1).

fact(av(mealTime(bun_rieu), [breakfast, lunch, dinner]), 1).
fact(av(mealTime(bun_oc), [breakfast, lunch, dinner]), 1).
fact(av(mealTime(bun_ngan), [breakfast, lunch, dinner]), 1).
fact(av(mealTime(bun_cha), [breakfast, lunch, dinner]), 1).
fact(av(mealTime(bun_thang), [breakfast, lunch, dinner]), 1).
fact(av(mealTime(bun_bo_hue), [breakfast, lunch, dinner]), 1).
fact(av(mealTime(bun_bung), [breakfast, lunch, dinner]), 1).
fact(av(mealTime(bun_ca), [breakfast, lunch, dinner]), 1).

fact(av(mealTime(pho_bo), [breakfast, lunch, dinner]), 1).
fact(av(mealTime(pho_ga), [breakfast, lunch, dinner]), 1).

fact(av(mealTime(chao_suon), [breakfast, lunch]), 1).
fact(av(mealTime(chao_trai), [breakfast, lunch]), 1).
fact(av(mealTime(chao_ga), [breakfast, lunch]), 1).
fact(av(mealTime(chao_ca), [breakfast, lunch]), 1).
fact(av(mealTime(chao_luon), [breakfast, lunch]), 1).

%
% Độ cứng mềm
%

fact(av(hardness(com_te), tender), 1).
fact(av(hardness(com_nep), tender), 1).
fact(av(hardness(thit_bo_sot_vang), tender), 0.7).
fact(av(hardness(thit_bo_xao_dua), tender), 0.9).
fact(av(hardness(thit_bo_xien_nuong), hard), 1).
fact(av(hardness(thit_bo_bit_tet), hard), 0.9).
fact(av(hardness(thit_lon_luoc), tender), 1).
fact(av(hardness(thit_lon_kho_nuoc_dua), tender), 0.7).
fact(av(hardness(thit_lon_kho_tau), tender), 0.7).
fact(av(hardness(thit_lon_xao_rau_cai), tender), 1).
fact(av(hardness(thit_lon_rang), hard), 1).
fact(av(hardness(ga_luoc), tender), 1).
fact(av(hardness(ga_ran), hard), 1).
fact(av(hardness(ga_nau_khoai_tay), tender), 1).
fact(av(hardness(ga_nau_ca_ri), tender), 1).
fact(av(hardness(ga_xao_nam_huong), tender), 1).

%
% Độ nóng, nguội
%

fact(av(hotcold(com_te), hot), 0).
fact(av(hotcold(com_nep), hot), 1).
fact(av(hotcold(thit_lon_kho_tau), hot), 1).
fact(av(hotcold(thit_lon_xao_rau_cai), hot), 1).
fact(av(hotcold(thit_lon_rang), hot), 1).
fact(av(hotcold(ga_luoc), cold), 1).
fact(av(hotcold(ga_ran), hot), 1).
fact(av(hotcold(ga_nau_khoai_tay), hot), 1).
fact(av(hotcold(ga_nau_ca_ri), hot), 1).
fact(av(hotcold(ga_xao_nam_huong), hot), 1).

%
% Cách chế biến
%

fact(av(cookType(com_te), cook), 1).
fact(av(cookType(com_nep), cook), 1).
fact(av(cookType(thit_bo_sot_vang), cook), 1).
fact(av(cookType(thit_bo_xao_dua), stirfried), 1).
fact(av(cookType(thit_bo_xien_nuong), fried), 1).
fact(av(cookType(thit_bo_bit_tet), cook), 1).
fact(av(cookType(thit_lon_luoc), boiled), 1).
fact(av(cookType(thit_lon_kho_nuoc_dua), cook), 1).
fact(av(cookType(thit_lon_kho_tau), cook), 1).
fact(av(cookType(thit_lon_xao_rau_cai), stirfried), 1).
fact(av(cookType(thit_lon_rang), roast), 1).
fact(av(cookType(ga_luoc), boiled), 1).
fact(av(cookType(ga_ran), fried), 1).
fact(av(cookType(ga_nau_khoai_tay), cook), 1).
fact(av(cookType(ga_nau_ca_ri), cook), 1).
fact(av(cookType(ga_xao_nam_huong), stirfried), 1).

%
% Nhóm món ăn
%

fact(av(group(com_te), rice), 1).
fact(av(group(com_nep), rice), 1).
fact(av(group(thit_bo_sot_vang), meat), 1).
fact(av(group(thit_bo_xao_dua), meat), 1).
fact(av(group(thit_bo_xien_nuong), meat), 1).
fact(av(group(thit_bo_bit_tet), meat), 1).
fact(av(group(thit_lon_luoc), meat), 1).
fact(av(group(thit_lon_kho_nuoc_dua), meat), 1).
fact(av(group(thit_lon_kho_tau), meat), 1).
fact(av(group(thit_lon_xao_rau_cai), meat), 1).
fact(av(group(thit_lon_rang), meat), 1).
fact(av(group(ga_luoc), meat), 1).
fact(av(group(ga_ran), meat), 1).
fact(av(group(ga_nau_khoai_tay), meat), 1).
fact(av(group(ga_nau_ca_ri), meat), 1).
fact(av(group(ga_xao_nam_huong), meat), 1).

fact(av(group(xoi_ruoc), special), 1).
fact(av(group(xoi_gio_cha), special), 1).
fact(av(group(xoi_thit), special), 1).
fact(av(group(xoi_lac), special), 1).
fact(av(group(xoi_dau_xanh), special), 1).
fact(av(group(xoi_dau_den), special), 1).
fact(av(group(xoi_vo), special), 1).
fact(av(group(xoi_xeo), special), 1).
fact(av(group(xoi_lua), special), 1).

fact(av(group(bun_rieu), special), 1).
fact(av(group(bun_oc), special), 1).
fact(av(group(bun_ngan), special), 1).
fact(av(group(bun_cha), special), 1).
fact(av(group(bun_thang), special), 1).
fact(av(group(bun_bo_hue), special), 1).
fact(av(group(bun_bung), special), 1).
fact(av(group(bun_ca), special), 1).

fact(av(group(pho_bo), special), 1).
fact(av(group(pho_ga), special), 1).

fact(av(group(chao_suon), special), 1).
fact(av(group(chao_trai), special), 1).
fact(av(group(chao_ga), special), 1).
fact(av(group(chao_ca), special), 1).
fact(av(group(chao_luon), special), 1).